package com.you.springcloud.alibaba.demo.mapper;

import com.you.springcloud.alibaba.demo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    @Insert("insert into user(id,name,age) values(#{id},#{name},#{age})")
    int insert(User user);

    List<User> getUserById(String id);
}
